package com.sid.oncf.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.sid.oncf.dao.interfaces.IGareDao;
import com.sid.oncf.entity.Gares;
import com.sid.oncf.services.interfaces.IGareService;

@Transactional
public class GareServiceImpl implements IGareService {
	
	@Autowired
	private IGareDao iGareDao;

	public boolean saveGare(Gares g) {
		// TODO Auto-generated method stub
		return iGareDao.save(g);
	}

	public boolean updateGare(Gares g) {
		// TODO Auto-generated method stub
		return iGareDao.update(g);
	}

	public boolean deleteGare(int id) {
		// TODO Auto-generated method stub
		return iGareDao.delete(id);
	}

	public Gares findGare(int id) {
		// TODO Auto-generated method stub
		return iGareDao.find(id);
	}

	public List<Gares> findAllGare() {
		// TODO Auto-generated method stub
		return iGareDao.findAll();
	}

}
